package com.charles.spring.ch1.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by charles on 2017/4/28.
 */
public class Main {
    public static void main(String[] args){

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);

        CLAnnotationService annotationService = context.getBean(CLAnnotationService.class);

        CLMethodService methodService = context.getBean(CLMethodService.class);

        annotationService.add();

        methodService.add();

        context.close();
    }
}
